{% extends "project/base.html" %}
{% block content %}
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-3"></div>
        <div class="col-sm-6">
            <div class="ibox float-e-margins">
                <div class="ibox-content mailbox-content">
                    <div class="file-manager">
                        <div class="space-25"></div>
                        <h2>课程详情</h2>
                        <div class="space-25"></div>
                        <div class="space-25"></div>
                        <ul class="folder-list m-b-md" style="padding: 0">
                            <li>
                                <a href="#"> <i class="glyphicon glyphicon-book"></i>课程名称： {{ course.cname }} </a>
                            </li>
                            <li>
                                <a href="#"> <i class="glyphicon glyphicon-book"></i>班级： {{ course.classes }}</a>
                            </li>
                            <li>
                                <a href="#"> <i class="glyphicon glyphicon-user"></i>教师： {{ course.teacher.name }}</a>
                            </li>
                            <li>
                                <a href="#"> <i class="glyphicon glyphicon-list-alt"></i>课程描述： {{ course.description }}</a>
                            </li>
                        </ul>
                        {% if request.user.role.role == 0 %}
                            <a class="btn btn-block btn-primary compose-mail" href="{% url 'project:course_select' course.id %}">加入课程</a>
                        {% endif %}
                        <div class="space-25"></div>
                        <h2 class="tag-title">标签</h2>
                        <ul class="tag-list" style="padding: 0">
                            <li><a href="#"><i class="fa fa-tag"></i> Python</a>
                            </li>
                            <li><a href="#"><i class="fa fa-tag"></i> Django</a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-sm-3"></div>
</div>
{% endblock %}